package com.example.esp8266.Equipment.Equipment_Fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.esp8266.R;

public class Warning_Fragment extends Fragment {

    private String target_device,back_info;
    private View root;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // 获取传递的数据
        Bundle args = getArguments();
        if (args != null) {
            target_device = args.getString("target_device", "");//目标控制设备
            back_info = args.getString("back_info","");//返回上一层标识
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        root = inflater.inflate(R.layout.task_create_fragment, container, false);

        return root;
    }
}